<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
<%@taglib prefix="rich" uri="http://richfaces.org/rich" %>
<%@taglib prefix="a4j" uri="http://richfaces.org/a4j" %>

<html>
    <head>
        <link rel="stylesheet" type="text/css" href="../css/popup.css"/>
        <link rel="stylesheet" type="text/css" href="../css/kapiform.css"/>
        <link rel="stylesheet" type="text/css" href="../css/thickbox.css"/>
        <script type="text/javascript" language="javascript" src="../scripts/jQuery/thickbox.js"></script>
        <script type="text/javascript" language="javascript" src="../scripts/jQuery/kapi.js"></script>
        <style type="text/css">
            #ui-datepicker-div
            {
                z-index: 9999999;
            }
            .record_row_left a:hover{color:black}

            .record_row_upload_main{
                width: 97% !important;
                margin-left: 12px;
            }   
            .blue{
                background: #E0EFFC;
            }
            .white{
                background: #FFFFFF;
            }
        </style>

    </head>



    <script type="text/javascript">
        $j(document).ready(function(){
            initThickBox('.thickbox');
        });
    </script>
    <body>
        <f:view>
            <f:loadBundle basename="#{environmentSession.localizationSource}" var="locale"/>
            <a4j:form >
                <div class="content_detail">
                    <div class="list_item_user">
                        <div class="item_content" style="display: block">
                            <div class="infomation_form">
                               <%--<div class="card_add" style="margin-left:11px; padding:0px">
                                    <h:outputLink rendered="#{documentController.add}"  value="" >
                                        <img src="../images/add_tab.png" alt="add" title="add" /><h:outputText value="Thêm Tour"/>
                                    </h:outputLink>
                                </div>--%>
                                <h:inputHidden id="id" value="#{v050Controller.fk100}" />
                                <div style="float:left ; width:100%; min-height:110px;">
                                    <div style="float:left; width:100%; min-height:100px; height:auto;">
                                        <div class="record_row_upload_main" style="">                                       
                                            <rich:dataTable  value="#{v050Controller.listAllV050CT}" rowKeyVar="row" var="item" columnClasses="col1"
                                                             rows="17" reRender="ds"
                                                             rowClasses="blue, white"
                                                             id="abcxyz">
                                                <rich:column> 
                                                    <f:facet name="header">
                                                        <h:outputText value="STT"/>
                                                    </f:facet>
                                                    <div style="width: 20px;text-align: center">
                                                        <h:outputText value="#{row+1}"/>
                                                    </div>

                                                </rich:column>   
                                                <rich:column> 
                                                    <f:facet name="header">
                                                        <h:outputText value="Mã tour" styleClass="col1" />
                                                    </f:facet>
                                                    <div style="width: 100px;">
                                                        <h:outputLink value="listTour.jsp?action=linkrecord&fv050=#{item.pv050}&tabel=T">
                                                        <h:outputText value="#{item.vv051}"/>
                                                        </h:outputLink>
                                                    </div>

                                                </rich:column>                                 
                                                <rich:column>
                                                    <f:facet name="header">
                                                        <h:outputText value="Tên tour"/>
                                                    </f:facet>
                                                    <div style="width: 200px;">
                                                        <h:outputText value="#{item.vv052}"/>
                                                    </div>

                                                </rich:column> 
                                                <rich:column>
                                                    <f:facet name="header">
                                                        <h:outputText value="Điểm khởi hành"/>
                                                    </f:facet>
                                                    <div style="width: 100px;">
                                                        <h:outputText value="#{item.vv069}"/>
                                                    </div>

                                                </rich:column> 
                                                <rich:column>
                                                    <f:facet name="header">
                                                        <h:outputText value="Điểm đến"/>
                                                    </f:facet>
                                                    <div style="width: 100px;">
                                                        <h:outputText value="#{item.vv070}"/>
                                                    </div>

                                                </rich:column> 
                                                <rich:column>
                                                    <f:facet name="header">
                                                        <h:outputText value="Mô tả"/>
                                                    </f:facet>
                                                    <div style="width: 170px;">
                                                        <h:outputText value="#{item.vv070}"/>
                                                    </div>

                                                </rich:column> 
                                                <rich:column>
                                                    <f:facet name="header">
                                                        <h:outputText value="Ngày cập nhật"/>
                                                    </f:facet>
                                                    <div style="width: 160px; text-align: center">
                                                        <h:outputText value="#{item.vl098}"><f:convertDateTime pattern="dd/MM/yyyy HH:mm:ss" /></h:outputText><br>
                                                        (<h:outputText value="#{item.vl099}" ></h:outputText>)
                                                    </div>

                                                </rich:column> 


                                                <%--<rich:column >
                                                    <f:facet name="header">
                                                        <h:outputText value="Sửa"/>
                                                    </f:facet>
                                                    <div style="width:60px; text-align: center">
                                                        
                                                        <h:outputLink rendered="#{loginSession.right.SLE_LST_MOD}" value="" >
                                                            <img src="../images/edit.png" alt="edit" title="Sửa"/>
                                                        </h:outputLink>
                                                        <h:outputLink rendered="#{loginSession.right.SLE_LST_DEL}" value="" >
                                                            <img src="../images/delete_1.png" alt="delete"  title="Xóa" />
                                                        </h:outputLink>

                                                    </div>
                                                </rich:column> --%>
                                            </rich:dataTable>
                                        </div>
                                    </div>

                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <rich:modalPanel id="ajaxLoadingModalBox" minHeight="30" minWidth="40"
                                 height="30" width="40" zindex="2000">
                    <h:outputText value="#{locale.please_wait}" styleClass="startDummer"></h:outputText>
                </rich:modalPanel>
            </a4j:form>
        </f:view>
    </body>
</html>